package com.zhenwei.zscm.controller;

import com.zhenwei.zscm.common.annotations.MethodName;
import com.zhenwei.zscm.common.base.RestResult;
import com.zhenwei.zscm.service.ApiService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/apiInfo")
@AllArgsConstructor
@MethodName("接口信息管理")
public class ApiInfoController {
    private ApiService apiService;

    @GetMapping("/list")
    @MethodName("获取接口信息列表")
    public RestResult list(){
        return apiService.list();
    }
}
